package com.yc.cinema.web;

import com.yc.cinema.biz.HallBiz;
import com.yc.cinema.biz.MovieBiz;
import com.yc.cinema.biz.UserBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

// @Component // 通用的组件注解
// 定义控制层语义组件

/**
 * HTML: div => header, footer, main, aside, nav
 */

@Controller
public class IndexAction {

	@Resource
	private UserBiz ubiz;

	@Autowired
	private MovieBiz mbiz;

	@Autowired
	private HallBiz hbiz;

	public UserBiz getUbiz() {
		return ubiz;
	}

	public void setUbiz(UserBiz ubiz) {
		this.ubiz = ubiz;
	}

	public MovieBiz getMbiz() {
		return mbiz;
	}

	public void setMbiz(MovieBiz mbiz) {
		this.mbiz = mbiz;
	}

	public HallBiz getHbiz() {
		return hbiz;
	}

	public void setHbiz(HallBiz hbiz) {
		this.hbiz = hbiz;
	}

}
